package io.renren.modules.app.dao.user;

import io.renren.modules.app.entity.company.YcCompanyFind;
import io.renren.modules.app.entity.company.YcUserFind;
import io.renren.modules.app.entity.index.YcRecommend;
import io.renren.modules.app.entity.user.UserIntentionJobEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @author lym
 * @email 928185446qq.com
 * @date 2023-12-21 17:03:21
 */
@Mapper
public interface UserIntentionJobDao extends BaseMapper<UserIntentionJobEntity> {

    List<UserIntentionJobEntity> queryByUserId(@Param("userId") Integer userId);

    UserIntentionJobEntity selectInfoById(@Param("id") Integer id);

    /**
     * 查询公司发现页数据
     */
    List<YcCompanyFind> selectCompanyFindList(@Param("titles") String titles,
                                              @Param("area") String area,
                                              @Param("trade") String trade,
                                              @Param("scale") String scale,
                                              @Param("age") String age,
                                              @Param("cityId") String cityId,
                                              @Param("page") Integer page,
                                              @Param("limit") Integer limit
                                              );

    /**
     * 查询公司发现页数据
     */
    List<YcUserFind> selectUserFindList(@Param("titles") String titles,
                                        @Param("area") String area,
                                        @Param("trade") String trade,
                                        @Param("scale") String scale,
                                        @Param("age") String age,
                                        @Param("cityId") String cityId,
                                        @Param("page") Integer page,
                                        @Param("limit") Integer limit
    );

    int updateCompanyMemberPoints(@Param("companyId") String companyId);

    List<YcRecommend> getRecommendList(@Param("area") String area,
                                       @Param("companyName") String companyName,
                                       @Param("page") Integer page,
                                       @Param("limit") Integer limit);
}
